//
//  CommCocoa.mm
//  ModMaxwell
//
//  Created by Michael Barriault on 10-11-06.
//  Copyright 2010 MikBarr Studios. All rights reserved.
//

#import "CommCocoa.h"
#include <iostream>
#import <Foundation/NSString.h>

void CommCocoa::PrintTime(real t) {
	return;
}

void CommCocoa::PrintStatus(std::string status, bool n) {
	NSString* statusStr = [[NSString alloc] initWithCString:status.c_str()];
	[statusField setStringValue:statusStr];
	[statusStr release];
}

void CommCocoa::Progress(real t) {
	[progressBar setHidden:FALSE];
	if (t<0) t = 0;
	else if (t>1) t = 1;
	[progressBar setDoubleValue:t];
}

